#ifndef _primitive_h_included_
#define _primitive_h_included_

#include <d3dx9.h>
#include <d3d9.h>
#include "Ray.h"

class Primitive
{

public:
	
	D3DXCOLOR diffuseColor;
	D3DXCOLOR specularColor;
	D3DXCOLOR color;

	bool shadingOn;
	float reflection;
	float transmission;
	float ior;
	bool sphere;
	bool hypertexture;

	float ambientStrength, diffuseStrength, specularStrength, exponent;

	virtual float Intersect(RAY &ray){return -1;}
	virtual void GetColor(D3DXCOLOR* pColor, D3DXVECTOR3* intersectionPoint){*pColor = color;}
	virtual void Normal(D3DXVECTOR3* output, D3DXVECTOR3 &point){}
};

#endif